<%--
  Created by IntelliJ IDEA.
  User: 侯侯
  Date: 2021/12/10
  Time: 11:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <c:set var="test1" scope="request" value="test1"/>
    <c:out value="${test2}" default="lalala"/>

    <c:if test="${1<2}" scope="request" var="firstif">
        <h1>看到这个说明是true</h1>
    </c:if>

    <c:if test="${firstif}">
        <h1>看到这个说明是true</h1>
    </c:if>

    <ul>
        <c:forEach begin="0" end="10" step="2" varStatus="index">
            <li>这是第${index.index}个li</li>
        </c:forEach>
    </ul>

</body>
</html>
